//#include "stdafx.h"
#include "string.h"
#include "iostream"
#include "fstream"
#include "ctime"
#include "util.h"
#include "stdlib.h"

using namespace std;

double change_triple2double1(string u_id, string m_id, string star)
{
	unsigned int uid = (unsigned int)atoi(u_id.c_str());
	unsigned int mid = (unsigned int)atoi(m_id.c_str());
	unsigned int rate = (unsigned int)atoi(star.c_str());

	double out;
	out = uid<<18+mid<<3+rate;
	return out;
}

double calRMSE(double* real, double* guess)
{
	return 0;
}
